package com.example.retrofitdemo2;



import okhttp3.FormBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

public interface WeatherRequest {
    @GET("simpleWeather/cityList")
    Call<BaseListRequest<CityIteam>> requestList(@Query("key") String key);

    @POST("simpleWeather/cityList")
    Call<BaseListRequest<CityIteam>> requestPost(@Body FormBody body);

    @GET("simpleWeather/cityList")
    Observable<BaseListRequest<CityIteam>> requestCityListRX(@Query("key") String key);
}
